package com.whmskj.xjlhsc.mobie.empProPlan.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.whmskj.xjlhsc.mobie.Scheduling.Dto.EmployeeFilesDTO;
import com.whmskj.xjlhsc.mobie.Scheduling.Dto.MachineryDTO;
import lombok.Data;

/**
 * 人员看台组长确认临时表
 *
 * @author lk
 * @since 2025-07-07 11:01:25
 */
@Data
@TableName("pro_personnel_stand_confirm")
public class ProPersonnelStandConfirm implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 日期
     */
    @TableField("date_ymd")
    private String dateYmd;

    /**
     * 员工ID
     */
    @TableField("staff_id")
    private Integer staffId;

    /**
     * 班组ID
     */
    @TableField("team_id")
    private Integer teamId;

    /**
     * 班组名称
     */
    @TableField("team_name")
    private String teamName;

    /**
     * 班次 -中文白班夜班
     */
    @TableField("classes")
    private String classes;

    /**
     * 工序码值
     */
    @TableField("process")
    private String process;

    /**
     * 机台编号,逗号分开
     */
    @TableField("workstation")
    private String workstation;

    /**
     * 车间
     */
    @TableField("workshop")
    private String workshop;

    /**
     * 确认状态
     */
    @TableField("confirm_status")
    private String confirmStatus;

    /**
     * 关联机台信息
     */
    @TableField("machinery_obj")
    private String machineryObj;

    /**
     * 创建人id
     */
    @TableField("create_user_id")
    private Long createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    // 非数据库字段
    /**
     * 员工信息
     */
    @TableField(exist = false)
    private EmployeeFilesDTO employee;
    /**
     * 设备信息
     */
    @TableField(exist = false)
    private List<MachineryDTO> machineryList;

}